import { useRef, useState } from 'react';

export function usePRLController() {
  const [activePage, setActivePage] = useState<'list' | 'tile'>('tile');
  const params = useRef<{ pName?: string; cName?: string; classId?: string }>({});

  console.log(`params:${params.current}}`);
  return {
    activePage,
    setActivePage,
    params: params.current,
  };
}
